<template>
  <!-- 当月施组、AB类施工方案报审通报 -->
   <a-table class="takeOut-hover" :columns="columns" bordered :pagination="false" :data-source="tableData" >
   <template v-for="col in columns" :slot="col.dataIndex" slot-scope="text, record,index">
       {{noValue(record[col.dataIndex],index,col.dataIndex)}}
     </template>
  </a-table>
</template>
<script>

import { summaryMixin } from "./mergeCell";
export default {
  mixins:[summaryMixin], //混入文件
  name: 'a' + Date.now(),
  props: {
    tableData: {
      type: Array,
      default() {
        return []
      }
    }
  },
  data() {
    this.columns = [
      { title: '序号',align: 'center',dataIndex: 'serial', width:'4%',scopedSlots: { customRender: 'serial' } },
      {
        title: '所属分公司',
        align: 'center',
        dataIndex: 'branchComId',
        width:'12%',
        customRender: (value, row, index) => { 
          const obj = {
            children: row.branchComName || '/',
            attrs: {}
          }
          obj.attrs.rowSpan = this.mergeCellKey(row.branchComId, this.tableData, 'branchComId')
          return obj
        }
      },
      { title: '所属项目名称', align: 'center', dataIndex: 'projectName', width:'18%',scopedSlots: { customRender: 'projectName' }},
      { title: '施工方案名称', dataIndex: 'schemeName', align: 'center', width:'13%',scopedSlots: { customRender: 'schemeName' }},
      { title: '方案类别', dataIndex: 'schemeType', align: 'center',width:'11%',scopedSlots: { customRender: 'schemeType' }},
      { title: '编制人', dataIndex: 'aurhorizedPersonnelName', align: 'center',width:'9%',scopedSlots: { customRender: 'aurhorizedPersonnelName' }},
      { title: '计划报审时间', dataIndex: 'scheduledSubmissionTime', align: 'center',width:'11%',scopedSlots: { customRender: 'scheduledSubmissionTime' }},
      { title: '实际审批时间', dataIndex: 'actualApprovalTime', align: 'center',width:'11%',scopedSlots: { customRender: 'actualApprovalTime' }},
      { title: '状态', dataIndex: 'statusName', align: 'center',width:'11%',scopedSlots: { customRender: 'statusName' }},
    ]
    return {
      newTable: []
    }
  },
  methods: {
  },
  mounted() {
  }
}
</script>
<style lang="less">
</style>
